<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style>
			.father{
				display: flex;
				width: 400px;
				height: 400px;
				background-color: aqua;
				justify-content: center;
				align-items: center;
			}
			.son{
				
				/* transform: translate(50%,50%); */
				margin: 0 10px;
				width: 300px;
				height: 300px;
				background-color: pink;
			}
		</style>
	</head>
	<body>
		<div class="father">
			<div class="son"></div>
		</div>
	</body>
</html>